$(document).ready(function () {
    userInfo();
    $("#stu").click(function(){
        top.location.href="sc/stuS1.html";
    })
    $("#tea").click(function(){
        top.location.href="sc/teaS1.html";
    })
    $("#exp").click(function(){
        top.location.href="sc/expS1.html";
    })
})

function userInfo() {
    var id = localStorage.getItem(userInfoId);
    var data = "id=" + id;
    var userInfo;
    var rank;
    $.ajax({
        "url": url + userInfoUrl,
        "type": 'get',
        "data": data,
        "dataType": "json",
        "success": function (data) {
            var res = eval('(' + JSON.stringify(data) + ')');
            if (res.resultCode != 200) {
                error(data);
                return;
            }
            htmlFillUser(res.obj);
        },
        "error": error()
    })
    getRankData();
    getMySc();
}




